package com.cf.service;

import com.cf.entity.Item;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FocusServeice {
    //查询总关注条数
    public int selectCountByitemid(long iid);

    //添加关注
    public int insertFocus(long userid, long iid);

    //取消关注
    public int deleteFocus(long userid, long iid);

    public PageInfo<Item> selectItemByUserIds(int pagenum, int pagesize,long userid);

    //截取前4条数据
    public List<Item> selectItemByIdAndwu(long userid);
    //收藏
    public int updategz(long userid, long iid);
    //收藏
    public int selectByuidAndiid(@Param("userid") long userid, @Param("iid") long iid);
}
